{$CLEO .cs}
0000:

:spawnped_00
wait 0
if  
0256:   player $PLAYER_CHAR defined 
jf @spawnped_00
if
0038:   $ONMISSION == 0 // $ == int 
jf @spawnped_00
if
0ADC:   test_cheat "SPECIALOJ2"
jf @spawnped_00
0ADF: add_dynamic_GXT_entry "ZM1" text "PED SPAWNED!"
01F0: set_max_wanted_level_to 0 
03E5: text_box 'ZM1'

:spawnped_01
wait 0
if 
0038:   $ONMISSION == 0 // $ == int 
jf @spawnped_02
4@ = 0
00A0: store_actor $PLAYER_ACTOR position_to 1@ 2@ 3@

:spawnped_02
023C: load_special_actor 4 'OJG2' // Cargar actor especial al principio
jump @SPECIALACTOR_C

:SPECIALACTOR_C
while true
wait 0
if 
    023D: special_actor 4 loaded // Verificar carga del actor especial
then
    jump @SPECIALACTOR_TEST
end 
end

:SPECIALACTOR_TEST // Create actors 
0000:
009A: $ojg2 = create_actor 21 #SPECIAL04 at 1@ 2@ 3@
01B2: give_actor $ojg2 weapon 3 ammo 9999
01C2: mark_actor_as_no_longer_needed $ojg2
jump @spawnped_00
0A93: terminate_this_custom_script